import request from '@/utils/request'

// 查询个人信息
export function selectInfo() {
	return request({
		url: '/function/home',
		method: 'get'
	})
}

// 查询销售数据
export function selectSale() {
	return request({
		url: '/function/home/sales/data',
		method: 'get'
	})
}
// 查询商务数据
export function selectbuss() {
	return request({
		url: '/function/home/business/data',
		method: 'get'
	})
}
// 修改用户信息
export function updateUser(data) {
	return request({
		url: '/function/home/user/update',
		method: 'POST',
		data: data
	})
}
// 修改密码
export function updatePwd(data) {
	return request({
		url: '/function/home/updatePwd',
		method: 'POST',
		data: data
	})
}
// 二维码
export function qrCode(query) {
	return request({
		url: '/function/home/get/openId',
		method: 'GET',
		params: query
	})
}
//
export function getList(query) {
	return request({
		url: '/audit/record/list',
		method: 'GET',
		params: query
	})
}
export function getMassage(){
	return request({
		url: '/function/mail/number',
		method: 'GET'
	})
}
//最新的客户信息5条
export function getCustomers(){
	return request({
		url: '/function/customer/latestCustomer',
		method: 'GET'
	})
}

//工程主管、工程员项目工程信息汇总
export function getProjectCollect(){
	return request({
		url: '/function/project/projectCollect',
		method: 'GET'
	})
}
//业务主管、公司经理最新的项目信息5条
export function getLatestProject(){
	return request({
		url: '/function/project/latestProject',
		method: 'GET'
	})
}
//查询待处理项目采购列表信息
export function getWait(){
	return request({
		url: '/function/procure/waitHandleList',
		method: 'GET'
	})
}
//业务主管、公司经理最新的项目信息5条
export function getC(){
	return request({
		url: '/function/project/projectProcureCollect',
		method: 'GET'
	})
}
//查询待审核列表信息
export function getCheckList(){
	return request({
		url: '/function/home/examine',
		method: 'GET'
	})
}